package zzcltw.com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.boot.web.servlet.ServletComponentScan;


@ServletComponentScan
@SpringBootApplication
@MapperScan("zzcltw.com.mapper")//将项目中对应的mapper类的路径加进来就可以了
public class CltApplication extends SpringBootServletInitializer{
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        //Demo1Application这个类是SpringApplication.run启动类
        return application.sources(CltApplication.class);
    }
	public static void main(String[] args) {
		SpringApplication.run(CltApplication.class, args);
	}
}
